package com.ls.lserp.dbaccess.Dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.ExchangeFormEntity;
import com.ls.lserp.dbaccess.Entity.FinanceEntity;
import com.ls.lserp.modules.trade.entity.Settlement;
@MyBatisDao
public interface ExchangeFormEntityMapper extends CrudDao<Settlement> {
    int deleteByPrimaryKey(Long foreignId);

    int insert(ExchangeFormEntity record);

    int insertSelective(ExchangeFormEntity record);

    ExchangeFormEntity selectByPrimaryKey(Long foreignId);

    int updateByPrimaryKeySelective(ExchangeFormEntity record);

    int updateByPrimaryKeyWithBLOBs(ExchangeFormEntity record);

    int updateByPrimaryKey(ExchangeFormEntity record);
    //结汇一览
    List<FinanceEntity> findList(FinanceEntity financeEntity);
    //插入结汇表
    int insertExchangeForm(Settlement settlement);
    //获取合同信息
    List<Settlement> findContractInfo(Settlement settlement);
    //获取总金额
    String getSumAmount(Settlement settlement);
    //更新结汇表数据
    int updateCreateInfo(Settlement settlement);
}